/**
 * @date 2022/4/1
 * @description main.js
 * @author 
 */

import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)

//将elmentPlus换成中文
import ElementPlus from 'element-plus'
import locale from 'element-plus/lib/locale/lang/zh-cn'
app.use(ElementPlus, { locale }) // element-plus

// permission 权限文件
import './config/permission'

//elmentui css文件
import 'element-plus/theme-chalk/display.css'
import 'element-plus/es/components/message-box/style/index'
import 'element-plus/es/components/message/style/index'
import 'vue-cropper/dist/index.css'
// router
import router from './router/index'
app.use(router)

// vuex
import store from '@/store'
app.use(store)

//打印插件
import print from 'vue3-print-nb'
app.use(print)

// iconfont
import icon from './plugin/icon'
icon(app)

//图标库
import '/src/assets/fonts/yunnan-iconfont/iconfont.css'
import '/src/assets/fonts/iconfont-default/iconfont.css'

// layout components
import layoutComp from './layouts/components/export'
layoutComp(app)

//公共组件
import commonComp from '@/components/comExport.js'
commonComp(app)

app.mount('#app')